package cn.sdhuijin.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import cn.sdhuijin.model.OfficialLoan;

public interface OfficialLoanDao extends JpaRepository<OfficialLoan, Long> {

	public Page<OfficialLoan> findAll(Specification<OfficialLoan> spec,
			Pageable pageable);
	
	public List<OfficialLoan> findByTelphoneOrderByApplyDateDesc(String name);

}
